package com.wentao.thisService.mapper;

import com.wentao.thisService.model.CompanyCustomInfoEntity;
import com.wentao.thisService.model.entities.IntResultEntity;
import com.wentao.thisService.model.entities.PageEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CompanyCustomInfoDao {

    public List<CompanyCustomInfoEntity> Search(CompanyCustomInfoEntity entity);

    public List<CompanyCustomInfoEntity> SearchPage(@Param("entityItem") CompanyCustomInfoEntity entityItem, @Param("pageItem") PageEntity pageItem);

    public void Update(@Param("entityItem") CompanyCustomInfoEntity entity, @Param("valueItem") CompanyCustomInfoEntity val);

    public void Insert(CompanyCustomInfoEntity entity);

    public List<CompanyCustomInfoEntity> SearchAut(CompanyCustomInfoEntity entity);

    public List<CompanyCustomInfoEntity> SearchPageAut(@Param("entityItem") CompanyCustomInfoEntity entityItem, @Param("pageItem") PageEntity pageItem);

    public void UpdateAut(@Param("entityItem") CompanyCustomInfoEntity entity, @Param("valueItem") CompanyCustomInfoEntity val);

    public IntResultEntity Count(CompanyCustomInfoEntity entity);

    public IntResultEntity CountAut(CompanyCustomInfoEntity entity);

    public void UpdateByCompanyCustomId(CompanyCustomInfoEntity entity);
}